package com.dayu.demo.pojo;

import java.util.Map;
import javax.persistence.Column;
import com.vecspace.data.model.RowMapper;

/** 员工
 * @template dayu-code-builder
 * @author user
 * @reviewer 
 * @createTime 2021-11-24 15:11:41
 */
public class EmployeeEx extends Employee implements java.io.Serializable {
  private static final long serialVersionUID = 20017L;

    public EmployeeEx(){
    }

    public EmployeeEx(Employee employee){
        setEmployee(employee);
    }
    private String deptName;
    @Column(name="DEPT_NAME", table="T_DEMO_DEPARTMENT")
    public String getDeptName(){
        return deptName;
    }

    public void setDeptName(String value){
        this.deptName = value;
    }
    /**拷贝employee对象的属性值赋值到本对象的属性值*/
    public void setEmployee(Employee obj){
        this.setId(obj.getId());
        this.setDeptId(obj.getDeptId());
        this.setName(obj.getName());
        this.setIdCardType(obj.getIdCardType());
        this.setIdCardNumber(obj.getIdCardNumber());
        this.setSex(obj.getSex());
        this.setBirthday(obj.getBirthday());
        this.setBirthplace(obj.getBirthplace());
        this.setMobile(obj.getMobile());
        this.setEmail(obj.getEmail());
        this.setJobTitle(obj.getJobTitle());
        this.setEducation(obj.getEducation());
        this.setSchool(obj.getSchool());
        this.setSpeciality(obj.getSpeciality());
        this.setRemarks(obj.getRemarks());
        this.setOrdnum(obj.getOrdnum());
        this.setTenantId(obj.getTenantId());
        this.setRowLock(obj.getRowLock());
        this.setCreateTime(obj.getCreateTime());
        this.setCreateUser(obj.getCreateUser());
    }
    
    @Override
    public void parseFrom(Map<String, Object> row){
        super.parseFrom(row);
        RowMapper rowMapper = new RowMapper(row);
        this.deptName = rowMapper.getString("DEPT_NAME");
    }
}
